package com.elinshaw.pattern.future;

public interface Future<T> {

    /**
     * 返回计算后结果会阻塞
     *
     * @return
     * @throws InterruptedException
     */
    T get() throws InterruptedException;

    boolean done();

}
